//
//  YsNoteSDKViewModel.m
//  YsNoteSDK
//
//  Created by 宋宏康 on 2020/3/21.
//

#import "YsNoteSDKViewModel.h"
#import "YsNoteSDKNetWorkManager.h"
@implementation YsNoteSDKViewModel
+ (RACSignal *)getUploadFetchWayWithuid:(NSString *)uid
{
    return [RACSignal createSignal:^RACDisposable * _Nullable(id<RACSubscriber>  _Nonnull subscriber) {
        
        [YsNoteSDKNetWorkManager uploadFetchWayWithuid:uid success:^(YsToolsManagerResultModel * _Nonnull result) {
            [subscriber sendNext:result.data];
            [subscriber sendCompleted];
        } fail:^(NSError * _Nonnull error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
}
@end
